//
//  TimeDisplayView.m
//  Honey
//
//  Created by 贾亚涵 on 16/4/6.
//  Copyright © 2016年 贾亚涵. All rights reserved.
//

#import "H_TimeDisplayView.h"

@interface H_TimeDisplayView ()
{
    UIView * _TDV;
    UIImageView * _disV1;
    UIImageView * _disV2;
    UIImageView * _disV3;
    UIImageView * _disV4;
}

@end

@implementation H_TimeDisplayView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if (self)
    {
        [self initUIView];
    }
    
    return self;
}



-(void)initUIView
{
    _TDV = [[UIView alloc] initWithFrame:CGRectMake(0, 64, Screen_Width, Screen_Height-64)];
    
    _TDV.backgroundColor = [UIColor colorWithRed:244/255.0f green:242/255.0f blue:235/255.0f alpha:1];
    
    [self addSubview:_TDV];
    
    
    _disV1 = [[UIImageView alloc] initWithFrame:CGRectMake(10, 1, (Screen_Width-30)/2, (Screen_Width-30)/2)];
    _disV1.image = [UIImage imageNamed:@"Time1"];
    [_TDV addSubview:_disV1];
    
    _disV2 = [[UIImageView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_disV1.frame)+10, 1, (Screen_Width-30)/2, (Screen_Width-30)/2)];
    _disV2.image = [UIImage imageNamed:@"Time2"];
    [_TDV addSubview:_disV2];
    
    _disV3 = [[UIImageView alloc] initWithFrame:CGRectMake(10, CGRectGetMaxY(_disV1.frame)+10, (Screen_Width-30)/2, (Screen_Width-30)/2)];
    _disV3.image = [UIImage imageNamed:@"Time3"];
    [_TDV addSubview:_disV3];
    
    _disV4 = [[UIImageView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_disV3.frame)+10, CGRectGetMaxY(_disV1.frame)+10, (Screen_Width-30)/2, (Screen_Width-30)/2)];
    _disV4.image = [UIImage imageNamed:@"Time4"];
    [_TDV addSubview:_disV4];

}
@end
